<template>
  <div class="container">
    <Header></Header>
    <div class="inner">
      <div class="login-form">
        <div class="form-header">欢迎回到光合创造</div>
        <div class="form-body">
            <a-tabs defaultActiveKey="1" @change="callback">
            <a-tab-pane tab="账号登录" key="1">
              <a-form>
                <a-form-item label="邮箱/手机" :label-col="{span:6}"
                             :wrapper-col="{span:18}" style="margin-top: 20px">
                  <a-input/>
                </a-form-item>
                <a-form-item label="密码" :label-col="{span:6}"
                             :wrapper-col="{span:18}" style="margin-bottom: 0">
                  <a-input/>
                </a-form-item>

                <p style="height: 50px;text-align: right">
                  <a href="#" style="text-decoration: none;"><span class="tz-action">忘记密码？</span></a>
                </p>

                <a-button type="primary" html-type="submit" style="width: 230px">
                  登录
                </a-button>

                <p class="no-account">还没有账号？ 请<a class="tz-link" href="#">申请开通</a></p>
              </a-form>
            </a-tab-pane>
            <a-tab-pane tab="微信登录" key="2" forceRender>
              <div class="qr-code">
                <img src="../../assets/code.jpg" alt="">
              </div>
              <p class="qr-code-text">在 微信 扫描二维码登录 “特赞”</p>

              <p class="no-account">还没有账号？ 请<a class="tz-link" href="#">申请开通</a></p>
            </a-tab-pane>
          </a-tabs>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import Header from "../views/Header.vue";

  export default {
    name: "Login.vue",
    components:{
      Header
    }
  }
</script>

<style scoped>
  .container{
    background: #f8f8f8;
  }
  .inner{
    padding: 120px 0 140px;
    min-height: 500px;
  }
  .login-form{
    width: 500px;
    min-height: 300px;
    margin: 40px auto 0;
    background: #fff;
    overflow-y: auto;
    border-radius: 2px;
    -webkit-box-shadow: 0 6px 8px 0 rgba(0,0,0,.05);
    box-shadow: 0 6px 8px 0 rgba(0,0,0,.05);
  }
  .form-header{
    padding: 30px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
  }
  .form-body{
    padding: 35px 75px;
  }
  .ant-tabs{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.7;
    list-style: none;
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
    position: relative;
    overflow: hidden;
    zoom: 1;
  }
  .ant-tabs-bar {
    margin: 0 0 16px;
    border-bottom: 1px solid #eaeaea;
    outline: none;
  }

  .no-account{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .6px;
    color: #999;
    text-align: center;
    margin-top: 60px;
  }
  .qr-code img{
    width: 280px;
    margin-top: 15px;
    border: 1px #00000017 solid;
  }
  .qr-code-text{
    text-align: center;
    margin-top: 8px;
  }
</style>